<?php 
/* SVN FILE: $Id$ */
/* DepositEvent Test cases generated on: 2009-04-24 22:04:31 : 1240611091*/
App::import('Model', 'DepositEvent');

class DepositEventTestCase extends CakeTestCase {
	var $DepositEvent = null;
	var $fixtures = array('app.deposit_event', 'app.event', 'app.deposit');

	function startTest() {
		$this->DepositEvent =& ClassRegistry::init('DepositEvent');
	}

	function testDepositEventInstance() {
		$this->assertTrue(is_a($this->DepositEvent, 'DepositEvent'));
	}

	function testDepositEventFind() {
		$this->DepositEvent->recursive = -1;
		$results = $this->DepositEvent->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('DepositEvent' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'event_id'  => 'Lorem ipsum dolor sit amet',
			'deposit_id'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-04-24 22:11:31',
			'modified'  => '2009-04-24 22:11:31'
		));
		$this->assertEqual($results, $expected);
	}
}
?>